<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
    <script>
        function arrAdd(arr) {
            var arr1 = [];
            var arr2 = [];
            var arr3 = [];
            arr.sort();
            for (var i = 0; i < arr.length; i++) {
                if (arr[i] !== arr[i + 1]) {
                    arr1.push(arr[i]);
                } else {
                    arr2.push(arr[i]);
                }
            }
            console.log(arr1);
            console.log(arr2.join(""));
            for (var i = 0; i < arr1.length; i++) {
                if (arr2.join("").indexOf(arr1[i]) < 0) {
                    arr3.push(arr1[i]);
                } else {

                }
            }
            console.log(arr3);
            var count = 0;
            for (var j = 0; j < arr3.length; j++) {
                count += arr3[j];
            }
            console.log(count);
        }
        var arr = [3, 4, 1, 2, 5, 6, 6, 5, 4, 3, 3];
        arrAdd(arr);
        
        $(function(){
            function move(m,n){
                $("#div").animate({left:'+'+m+'px'},m/n*1000);
            }
            move(100,20);
        });
        function num(){
            var arr=[];
            arr[0]=Math.round(Math.abs(Math.random()*100-1));
            for(var i=0;i<9; ){
                var a=Math.round(Math.abs(Math.random()*100-1));
                if(arr.join("").indexOf(a)<0){
                    arr.push(a);
                    i++;
                }
            }
            console.log(arr);
        }
        num();
    </script>
    <style>
        #div{
            position: fixed;
            left:0;
            top:0;
            width:100px;
            height:100px;
            background: orange;
            text-align: center;
            line-height:100px;
            color: #fff;
        }
    </style>
</head>
<body>
<div id="div">abc</div>
<<<<<<< HEAD
<a href="#">ali修改</a>
=======
<p>wechat添加</p>
>>>>>>> wechat
</body>
</html>